package com.cms.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cms.server.model.Right;
import com.cms.server.model.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    @Select("select * from user_role where userid = #{user_id} and status = 1")
    Role selectByUserId(Integer user_id);
}
